package fr.dsax.nounet.belote.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * Entity implementation class for Entity: Game
 *
 */

public class GameDto extends GenericDto {
	
	private List<GameScoreDto> gameScores;	
	
	private String name;
	
	private static final long serialVersionUID = 1L;

	public GameDto() {
		super();

	}   
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public List<GameScoreDto> getGameScores() {
		return gameScores;
	}
	
	public void setGameScores(List<GameScoreDto> gameScores) {
		this.gameScores = gameScores;
	}   

	public void setGameScores(GameScoreDto ... gameScores) {
		if(this.gameScores == null) {
			this.gameScores = new ArrayList<GameScoreDto>();
		}
		for (GameScoreDto gameScore : gameScores) {
			this.gameScores.add(gameScore);
		}
	}
   
}
